n = 1
flag = -1
while n !=0:
    n = eval(input())
    for i in range(1,n+1):
        item = flag*(i+1)*(i+3)/(i+2)/(i+4)
        flag = -flag
    print(item)
